<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
    <communication></communication>
    <Msgform></Msgform>
    <el-button @click="startHacking">Start</el-button>
    <!-- <Chart></Chart> -->
  </div>
</template>

<script>
  import communication from '@/components/communication';
  import Msgform from '@/components/form';
  // import Chart from '@/components/Chart.vue';

  export default {
    name: 'App',
    components: {
      communication,
      Msgform,
      // Chart
    },
    methods: {
      onSomeEvent(msg) {
        console.log('app', msg);
      },
      startHacking() {
        this.$notify({
          title: 'It works!',
          type: 'success',
          message: 'We\'ve laid the ground work for you. It\'s time for you to build something epic!',
          duration: 5000
        })
      }
    },
  }
</script>

<style>
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
  }
</style>
